<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <script type="text/javascript" src="http://static.51zuoyeben.cn/static/js/resize_page.js"></script>
    <script type="text/javascript" src="http://static.51zuoyeben.cn/static/js/jquery-3.2.0.min.js"></script>
    <link rel="stylesheet" href="http://static.51zuoyeben.cn/static/css/reset.css">
    <style>
        body{font-family:"宋体",Arial,Helvetica,sans-serif!important;background-color:#ECE8DC;background-repeat:repeat}
        .kings_ti{font-size: 1.3rem;color: #7E6E66;margin: 1.45rem auto 0; clear: both;}
        .chos_list{width: 28.5rem;margin:0 auto;padding-bottom: 0rem;overflow: hidden;}
        .kings_ti .question_tit{margin: 0.5rem 0rem 0.5rem 0.6rem;float: left;clear: both;}
        .kings_ti .big_qno{float:left;width: 1.75rem;height: 1.75rem;text-align: center;margin-top:0.1rem;border-radius: 50%;background: #31C699;color: white; line-height: 1.8rem; font-size: 1.1rem}
        .kings_ti .big_subject{float:right; width:25.2rem;margin-left:0.475rem;line-height: 2.1rem;text-align: justify;}

        .list-box{float: left;}
        .list-box1{margin-right:7.5rem;margin-left: 2.125rem}
        .line{position: absolute; background: #59493F; transform-origin: left top;-webkit-transform-origin: left top; height: 0.1rem; z-index: 2; text-align: center;}
        .line_error{background: #FF366E;}
        .line em{display: inline-block; width: 1.675rem; height: 1.675rem; border-radius: 50%; border: 2px solid #f6a623; position: relative; top: -0.85rem; background: #ffffffff; background: url(http://static.51zuoyeben.cn/static/img/jd.png) no-repeat 0 0; background-size: 1.675rem 1.675rem; display: none; z-index: 999;}
        .line.on{height: 0.2rem; background-color: #f6a623; vertical-align: middle; z-index: 3;}
        .line.on em{display: inline-block;}
        .box{margin-bottom: 1.65rem;}
        .box span{display: inline-block;}
        .box span.qes{width:7.475rem;  border: 0.1rem solid #59493F; border-radius: 100px; text-align: center;font-size: 1.3rem;color: #4A4A4A;padding: 0.5rem 0;vertical-align: middle;}
        /*.box.on span.qes{background: #89D8A8; color: #fff;}*/
        .box span.point.start{width: 0.975rem; height: 0.975rem; border: 0.1rem solid #59493F; border-radius: 50%; background: #E8DFC6; text-align: center; line-height: 0.975rem; font-family: 'Aharoni-Bold';font-size: 0.75rem;color: #59493F; vertical-align: middle; margin-left: -0.6rem; position: relative; z-index: 9;}
        .box.on span.point.start{background: #59493F; color: #E8DFC6;}
        .box span.point.end{width: 0.975rem; height: 0.975rem; border: 0.1rem solid #59493F; border-radius: 50%; background: #E8DFC6; text-align: center; line-height: 0.975rem; font-family: 'Aharoni-Bold';font-size: 0.75rem;color: #59493F; vertical-align: middle; margin-left: -8rem;}
        .box.on span.point.end{background: #59493F; color: #E8DFC6;}
        .box span.point.on{color: #f6a623 !important; border-color:#f6a623; background: #fff !important;}
        .pop{position: fixed; height: 100%; width: 100%; left: 0; top: 0; display: none; _z-index: 11}
        /*三行*/

        .line3 .list-box{margin-right: 3.5rem;}
        .line3 .box span.point.end{margin-left: -6.7rem;}
        .line3 .box3 span.point.end{margin-left: -6.2rem;}
        .line3 .box span.qes{width: 5.4rem;}
        .line3 .list-box.box3{margin-right: 0;}

    </style>
</head>
<body>
<div class="kings_ti">
    <div data-qid="6567" data-index="16" class="chos_list">
        <div data-action="6" data-status="0" data-rqid="6567" data-qid="6567" class="lx_question  atom_question">
            <div class="question_tit tihao_content">
                <span class="big_qno">16</span>
                <div class="big_subject atom_content">将下列各生殖器官与其功能用线连在一起。</div>
            </div>
            <div class="cont clearfix lineBox line2" style="overflow:hidden;padding-top:0.75rem">
                <div class="list-box list-box1 box1">

                    <div data-index="1" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">睾丸</span></span><span class="point start">1</span>
                    </div>

                    <div data-index="2" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">附睾</span></span><span class="point start">2</span>
                    </div>

                    <div data-index="3" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">卵巢</span></span><span class="point start">3</span>
                    </div>

                    <div data-index="4" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">子宫</span></span><span class="point start">4</span>
                    </div>

                    <div data-index="5" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">前列腺</span></span><span class="point start">5</span>
                    </div>

                    <div data-index="6" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">输卵管</span></span><span class="point start">6</span>
                    </div>

                    <div data-index="7" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">输精管</span></span><span class="point start">7</span>
                    </div>

                    <div data-index="8" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">阴囊</span></span><span class="point start">8</span>
                    </div>

                    <div data-index="9" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">阴道</span></span><span class="point start">9</span>
                    </div>

                    <div data-index="10" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">尿道</span></span><span class="point start">10</span>
                    </div>
                </div>
                <div class="list-box list-box2 box2">
                    <div data-index="11" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">输送卵细胞</span></span><span class="point end">A</span>
                    </div>
                    <div data-index="12" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">输送精子</span></span><span class="point end">B</span>
                    </div>
                    <div data-index="13" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">分泌黏液</span></span><span class="point end">C</span>
                    </div>
                    <div data-index="14" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">保护睾丸和附睾</span></span><span class="point end">D</span>
                    </div>
                    <div data-index="15" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">精子进入和胎儿产出的通道</span></span><span class="point end">E</span>
                    </div>
                    <div data-index="16" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">胚胎和胎儿发育的场所</span></span><span class="point end">F</span>
                    </div>
                    <div data-index="17" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">产生卵细胞和分泌雌性激素</span></span><span class="point end">G</span>
                    </div>
                    <div data-index="18" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">储存和输送精子</span></span><span class="point end">H</span>
                    </div>
                    <div data-index="19" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">排出精液和尿液</span></span><span class="point end">I</span>
                    </div>
                    <div data-index="20" class="box">
                        <span class="qes"><span style="display:inline-block;padding:0 0.8rem;">产生精子和分泌雄性激素</span></span><span class="point end">J</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
    $(document).ready(function(){
        function initLxDisplay() {
            $('.lineBox').each(function(){
                var maxHeight = 0;
                $(this).children('.list-box').each(function(){
                    console.log($(this).outerHeight());
                    console.log('width:' + $(this).width());
                    if(maxHeight < $(this).height()) {
                        maxHeight = $(this).height();
                    }
                });
                // console.log('max-height:' + maxHeight);

                $(this).children('.list-box').each(function(){
                    if($(this).height() < maxHeight) {
                        var boxHeight = 0;
                        var marginBtm = 0;
                        var boxNum = $(this).children('.box').length;
                        $(this).children('.box').each(function(){
                            // console.log('box width:' + $(this).width() + ', height:' + $(this).height());
                            boxHeight += $(this).height();
                            //marginBtm += Number($(this).css('margin-bottom').replace('px', ''));
                        });
                        // console.log('boxHeight:' + boxHeight + 'boxNum:' + boxNum);
                        var marginBottom = (maxHeight - boxHeight)/boxNum;
                        $(this).children('.box').each(function(){
                            $(this).css('margin-bottom', marginBottom);
                        });

                    }

                });
            });

        }

        initLxDisplay();
    });

</script>
</body>    
     
                          